package dnl.confij;

import java.io.File;

/**
 * 
 * @author daniel
 * 
 */
public class UserHomeConfigLoader extends DirBasedConfigLoader {

	
	public UserHomeConfigLoader(String appName) {
		super(getConfigFilesDir(appName), appName);
	}

	private static File getHomeDir() {
		return new File(System.getProperty("user.home"));
	}

	private static File getConfigFilesDir(String appName) {
		return new File(getHomeDir(), "." + appName);
	}
}
